package com.carey.swift.dev.mapping;

import java.util.HashMap;
import java.util.Map;

public class StaticCache {

    /**
     * 控制器映射关系缓存
     */
    private static final Map<String,ControllerModel> objectMap=new HashMap<>();


    public static void setObjectMap(String url,ControllerModel controllerModel){
        objectMap.put(url,controllerModel);
    }


    /**
     * 获取控制器实体
     * @param url
     * @return
     */
    public static ControllerModel getControllerModel(String url) {
        return objectMap.get(url);
    }
}
